package com.example.myapp.utils;

import android.content.Context;
import android.widget.Toast;

public class Tools {
    //是否不为空
    public static boolean isNotEmpty(String str) {
        if (str != null && !"".equals(str.trim())) {
            return true;
        }
        return false;
    }
   //是否为空
    public static boolean isEmpty(String str) {
        if (str == null || "".equals(str.trim())) {
            return true;
        }
        return false;
    }

    //封装提示
    public static void toastTip(Context context, String tipContent){
        Toast.makeText(context,tipContent,Toast.LENGTH_SHORT).show();
    }
}
